package com.huidian.resource.client;

import com.huidian.resource.client.dto.StudentDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


/**
 * @author super on 2021-04-03 11:18:17
 * Copyright (c) reform-generator
 */
@FeignClient(name = "base-server")
public interface StudentFeign {

    @PostMapping("/student/list")
    List<StudentDto> selectList(@RequestBody StudentDto studentDto);


    @GetMapping("/student/selectbyid")
    StudentDto selectById(@RequestParam("stdId") Long stdId);

}
